#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QTableView>
#include "sqlitedboperator.h"
#include <QStandardItemModel>
#include <QMessageBox>
#include "modbusservice.h"


namespace Ui {
class MainWindow;
}



class MainWindow : public QMainWindow
{
    Q_OBJECT



public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    void paintEvent(QPaintEvent *);
private slots:
    void on_pushButton_3_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_clicked();

    void on_pushButton_5_clicked();

    void on_pushButton_4_clicked();

private:
    Ui::MainWindow *ui;
    void startinit();

    ModBusService   *ThreadModBus;

    SqliteDBAOperator mydb;

    QTimer realtimeclock;

};

#endif // MAINWINDOW_H
